<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>vue对象的生命周期</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
</head>
<body>



<script>

    new Vue({
        data: {
            a: 1
        },
        beforeCreate: function (){
        },
        created: function () {
        },
        beforeMount: function(){
        },
        mounted:function(){
        },
        beforeDestroy: function () {
        }
    })4

</script>
</body>
</html>